package com.five.Page;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Page<T> {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    private List<T> list;
    private String username;
    private String name;
    private String search; // 添加搜索字段
    private String orderSn;

//    private T params;

    public Integer getStart()
    {
        return (this.currentPage-1) * this.pageSize;
    }

}
